package com.ssy.lingxi.order.model.bo;

import com.ssy.lingxi.order.entity.OrderDO;

import java.io.Serializable;

/**
 * 订单收货- 判断是否转单前的订单收货，收货条件
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-15
 */
public class TransferOrderReceiveBO implements Serializable {
    private static final long serialVersionUID = -8340853137457580349L;

    public TransferOrderReceiveBO(Boolean receiveTransferredOrder) {
        this.receiveTransferredOrder = receiveTransferredOrder;
        this.transferredOrder = null;
    }

    public TransferOrderReceiveBO(OrderDO transferredOrder) {
        this.receiveTransferredOrder = true;
        this.transferredOrder = transferredOrder;
    }

    /**
     * 是否将转单后的订单发货，如果为True，则“转单后的订单”不为Null
     */
    private Boolean receiveTransferredOrder;

    /**
     * 转单后的订单
     */
    private OrderDO transferredOrder;

    public Boolean getReceiveTransferredOrder() {
        return receiveTransferredOrder;
    }

    public void setReceiveTransferredOrder(Boolean receiveTransferredOrder) {
        this.receiveTransferredOrder = receiveTransferredOrder;
    }

    public OrderDO getTransferredOrder() {
        return transferredOrder;
    }

    public void setTransferredOrder(OrderDO transferredOrder) {
        this.transferredOrder = transferredOrder;
    }
}
